package com.seven.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @RestController:rest风格，返回json
 */
@RestController
public class HelloWorldController {

    @RequestMapping("/helloword")
    public String helloword() {
        return "你好世界~ 我搭建快吧！";
    }
}
